<!DOCTYPE html>
<html>
    <head>
        <title>test</title>
        <link rel="stylesheet" href="index.css">
        <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    </head>
    <body>
        
        <div id="app">
            <li v-for="todo in todos">
                {{todo.text}}
            </li>
            <p>
                {{message}}
            </p>
            <button v-on:click="reverseMessage">反转</button>
            <ol>
               <todo-item
               v-for="item in lists"
               v-bind:todo="item"
               v-bind:key="id"
               ></todo-item> 
            </ol>
        </div>
        
        <script src="index.js"></script>
    </body>
</html>